﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DashBoard/Master/Main.Master" AutoEventWireup="true" CodeBehind="Liste.aspx.cs" Inherits="OgrIsleri.DashBoard.Modul.Dersler.Liste" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main_Body" runat="server">
      <fieldset>
                <div class="widget">
                    <div class="title"><img src="/images/icons/dark/list.png" alt="" class="titleIcon" /><h6>Ders Bilgileri</h6></div>
                     <div class="formRow">
                        <label>Dönem :</label>
                        <div class="formRight">
                            <asp:DropDownList ID="DpDonemler" runat="server" AppendDataBoundItems="True">
                                <asp:ListItem Selected="True" Value="0">Dönem Seçiniz</asp:ListItem>
                            </asp:DropDownList>

                        </div>
                        <div class="clear"></div>
                    </div>
                   
                    <div class="formRow">
                        <label>Ders Adı:</label>
                        <div class="formRight"><asp:TextBox ID="txtAd" runat="server"></asp:TextBox></div>
                        <div class="clear"></div>
                    </div>
                    <div class="formRow">
                        <asp:Button ID="BtnKaydet" CssClass="button dblueB" runat="server" Text="Kaydet" OnClick="BtnKaydet_Click" />
                    </div>
                </div>
            </fieldset>

    <div class="widget">
          <div class="title"><img src="/images/icons/dark/frames.png" alt="" class="titleIcon" /><h6>Kayıtlı Dersler</h6></div>
        <asp:Repeater ID="RptListe" runat="server">
            <HeaderTemplate>
            <table cellpadding="0" cellspacing="0" width="100%" class="display dTable">
                <thead>
                    <tr>
                        <td width="20px">#</td>
                        <td>Dönem Adı</td>
                        <td>Ders Adı</td>
                        <td width="30px">Akademisyenler</td>
                        <td width="20px">Güncelle</td>
                        <td width="20px">Sil</td>
                    </tr>
                </thead>
                <tbody>
                    </HeaderTemplate>
            <ItemTemplate>
                    <tr>
                        <td><%#Container.ItemIndex+1 %></td>
                        <td><%#Eval("TblDonemler.DonemAdi") %></td>
                        <td><%#Eval("DersAdi") %></td>
                        <td><a href="<%#ResolveUrl("~/DashBoard/Modul/Dersler/AkademisyenDersEkle.aspx?DersID="+Eval("DersID")) %>"><img src="/images/icons/dark/pencil.png" /></a></td>
                        <td><a href="<%#ResolveUrl("~/DashBoard/Modul/Dersler/liste.aspx?Guncelle="+Eval("DersID")) %>"><img src="/images/icons/dark/pencil.png" /></a></td>
                        <td><a onclick="return confirm('Kayıtı Silmek İstediğinizden Emin Misiniz?')" href="<%#ResolveUrl("~/DashBoard/Modul/Dersler/liste.aspx?Sil="+Eval("DersID")) %>"><img src="/images/icons/dark/close.png" /></a></td>
                    </tr>
                </ItemTemplate>
            <FooterTemplate>
                  </tbody>
            </table>
            </FooterTemplate>
        </asp:Repeater>
              
        </div>
    <asp:ValidationSummary ID="ValidSummary" runat="server" ShowMessageBox="True" ShowSummary="False" />
    <asp:RequiredFieldValidator ID="Valid1" runat="server" ErrorMessage="Lütfen Dönem Seçiniz" ControlToValidate="DpDonemler" InitialValue="0" Display="None"></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="Valid2" runat="server" ErrorMessage="Lütfen Ders Adı Giriniz" ControlToValidate="txtAd" Display="None"></asp:RequiredFieldValidator>
</asp:Content>
